package entity.salary;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("sa_payroll")
public class Payroll implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("sa_id")
    private Integer saId;

    /**
     * 工资单名称
     */
    @TableField("payroll_name")
    private String payrollName;

    /**
     * 关联薪资方案
     */
    @TableField("scheme_id")
    private Integer schemeId;

    /**
     * 发放月份
     */
    @TableField("payroll_month")
    private Date payrollMonth;

    /**
     * 关联工资单模板
     */
    @TableField("model_id")
    private Integer modelId;

    /**
     * 发放人数
     */
    @TableField("distribution_number")
    private String distributionNumber;

    /**
     * 已发放人数
     */
    @TableField("already_number")
    private String alreadyNumber;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableField("delete_flag")
    private Integer deleteFlag;


}
